import numpy as np
a=np.random.randint(40,100,(10,5))
# print(a)
test_score=a[6:,0:5]
print(test_score)
# print(test_score>60)

print(np.all(test_score>70))#全部满足为true
print(np.any(test_score>70))#只要一个满足
print(np.where(test_score>60,1,0))#三元运算符
print(np.logical_xor(np.all(test_score>60),np.any(test_score<80)))#同理还有逻辑与，或，异或，非

#统计
print(np.min(a,1))
print(np.max(a,1))
print(np.std(a,1))
print(np.mean(a,1))

#获取最值所在位置
print(np.argmin(test_score,1))
print(np.argmax(test_score,1))
# print(np.std(a,1))
# print(np.mean(a,1))